<?php /* @var $this ProductController */ ?>
<?php if (Yii::app()->user->hasFlash('success')): ?>
    <div class="alert alert-success">  
        <a class="close" data-dismiss="alert">×</a>  
        <?php echo Yii::app()->user->getFlash('success') ?>
    </div>  
<?php endif ?>
<?php if (Yii::app()->user->hasFlash('error')): ?>
    <div class="alert alert-error">  
        <a class="close" data-dismiss="alert">×</a>  
        <?php echo Yii::app()->user->getFlash('error') ?>
    </div>  
<?php endif ?>
<table class="table table-striped table table-striped table-bordered table-condensed">
    <?php foreach ($data as $row): ?>
        <!--ID|Mặt hàng|Mã sản phẩm|Sản phẩm|Nhà cung cấp|Giá|Số lượng|Size|Màu sắc-->
        <tr>
            <?php foreach ($row as $cell): ?>
                <td><?php echo $cell ?></td>
            <?php endforeach; ?>
        </tr>
    <?php endforeach; ?>
</table>
<?php $form = $this->beginWidget('CActiveForm'); ?>
<div class='clearfix'>
    <div class='input'>
        <input type="hidden" name="save" value="1"/>
        <?php echo CHtml::submitButton('Lưu', array('class' => 'btn btn-primary')); ?>
        <?php echo CHtml::button('Quay về trang mặt hàng', array('class' => 'btn', 'onclick' => 'javascript:location.href = \'' . $this->createUrl('list') . '\'')) ?>
    </div>
</div>
<?php $this->endWidget(); ?>